<template>
  <div class="list_menu diy_menu">
    <router-link
            to="/user_center/index"
            class="menu_item"
            :class="{ selected: this.$route.path=== '/user_center/index'}"
     >
      <span class="left_span">个人首页</span>
      <span class="right_span"><b-icon icon="house-fill"></b-icon></span>
    </router-link>
          <router-link
          to="/enterprise_user/table"
          class="menu_item"
          :class="{ selected: this.$route.path=== '/enterprise_user/table'}"
          v-if="$check_action('/enterprise_user/table','get')">
        <span class="left_span">{{ $page_title("/enterprise_user/table") || 企业用户 }}</span>
        <span class="right_span"><b-icon icon="house-fill"></b-icon></span>
      </router-link>
              <router-link
          to="/ordinary_user/table"
          class="menu_item"
          :class="{ selected: this.$route.path=== '/ordinary_user/table'}"
          v-if="$check_action('/ordinary_user/table','get')">
        <span class="left_span">{{ $page_title("/ordinary_user/table") || 普通用户 }}</span>
        <span class="right_span"><b-icon icon="house-fill"></b-icon></span>
      </router-link>
              <router-link
          to="/offline_recruitment/table"
          class="menu_item"
          :class="{ selected: this.$route.path=== '/offline_recruitment/table'}"
          v-if="$check_action('/offline_recruitment/table','get')">
        <span class="left_span">{{ $page_title("/offline_recruitment/table") || 线下招聘 }}</span>
        <span class="right_span"><b-icon icon="house-fill"></b-icon></span>
      </router-link>
              <router-link
          to="/post_classification/table"
          class="menu_item"
          :class="{ selected: this.$route.path=== '/post_classification/table'}"
          v-if="$check_action('/post_classification/table','get')">
        <span class="left_span">{{ $page_title("/post_classification/table") || 岗位分类 }}</span>
        <span class="right_span"><b-icon icon="house-fill"></b-icon></span>
      </router-link>
              <router-link
          to="/online_recruitment/table"
          class="menu_item"
          :class="{ selected: this.$route.path=== '/online_recruitment/table'}"
          v-if="$check_action('/online_recruitment/table','get')">
        <span class="left_span">{{ $page_title("/online_recruitment/table") || 线上招聘 }}</span>
        <span class="right_span"><b-icon icon="house-fill"></b-icon></span>
      </router-link>
              <router-link
          to="/resume_delivery/table"
          class="menu_item"
          :class="{ selected: this.$route.path=== '/resume_delivery/table'}"
          v-if="$check_action('/resume_delivery/table','get')">
        <span class="left_span">{{ $page_title("/resume_delivery/table") || 简历投递 }}</span>
        <span class="right_span"><b-icon icon="house-fill"></b-icon></span>
      </router-link>
              <router-link
          to="/interview_invitation/table"
          class="menu_item"
          :class="{ selected: this.$route.path=== '/interview_invitation/table'}"
          v-if="$check_action('/interview_invitation/table','get')">
        <span class="left_span">{{ $page_title("/interview_invitation/table") || 面试邀请 }}</span>
        <span class="right_span"><b-icon icon="house-fill"></b-icon></span>
      </router-link>
              <router-link
          to="/interview_results/table"
          class="menu_item"
          :class="{ selected: this.$route.path=== '/interview_results/table'}"
          v-if="$check_action('/interview_results/table','get')">
        <span class="left_span">{{ $page_title("/interview_results/table") || 面试结果 }}</span>
        <span class="right_span"><b-icon icon="house-fill"></b-icon></span>
      </router-link>
          <router-link
              to="/forum/table"
              class="menu_item"
              :class="{ selected: this.$route.path=== '/forum/table'}"
              v-if="$check_action('/forum/table','get')">
        <span class="left_span">{{$page_title("/forum/table") || "论坛"}}</span>
        <span class="right_span"><b-icon icon="house-fill"></b-icon></span>
      </router-link>
      <router-link
              to="/message/table"
              class="menu_item"
              :class="{ selected: this.$route.path=== '/message/table'}"
              v-if="$check_action('/message/table','get')">
        <span class="left_span">{{$page_title("/message/table") || "留言反馈"}}</span>
        <span class="right_span"><b-icon icon="house-fill"></b-icon></span>
      </router-link>
  <router-link
              to="/user/collect"
              class="menu_item"
              :class="{ selected: this.$route.path=== '/user/collect'}"
              v-if="$check_action('/collect/list','get')">
        <span class="left_span">收藏</span>
        <span class="right_span"><b-icon icon="house-fill"></b-icon></span>
  </router-link>
	<router-link
	            to="/comment/table"
	            class="menu_item"
	            :class="{ selected: this.$route.path=== '/comment/table'}"
	            v-if="$check_action('/comment/table','get')">
	      <span class="left_span">评论管理</span>
	      <span class="right_span"><b-icon icon="house-fill"></b-icon></span>
	</router-link>
  </div>
</template>

<script>
import mixin from "@/mixins/page.js";
export default {
  mixins: [mixin],
  data() {
    return {
    };
  },
  mounted() {
  },
  methods: {
  },

  components: {
  },
};
</script>

<style scoped>
.list_menu {
  flex: 0 0 25%;
  border-bottom: 1px solid #eee;
}
.menu_item {
  display: flex;
  justify-content: space-between;
  padding: 15px 20px;
  border: 1px solid #eee;
  border-bottom: none;
  background-color: #fff;
}
.menu_item.selected {
  background-color: #000;
}
.menu_item.selected span {
  color: #fff ;
}
.content {
  flex: 0 0 74%;
}
</style>
